package com.ithuameng.generator;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties(prefix = "code.generator")
public class GeneratorModel {

	private String moduleName;

	private String parentPackageName;

	private String author;

	private DataSource dataSource = new DataSource();

	@Data
	static class DataSource {
		
		private String dialet;
		
		private String driverName;

		private String url;

		private String userName;

		private String password;
	}
}
